﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DTO;
using DAO;

namespace BUS
{
   public class KhachHangBUS
    {
        public List<KhachHangDTO> DanhSachKhachHang()
        {
            KhachHangDAO kq = new KhachHangDAO();
            return kq.DanhSachKhachHang();
        }
        public KhachHangDTO LayKhachHangByID(int kH_ID)
        {
            KhachHangDAO kq = new KhachHangDAO();
            return kq.LayKhachHangByID(kH_ID);
        }
        public KhachHangDTO LayKhachHangByMaKhachHang(string MaKhachHang)
        {
            KhachHangDAO kq = new KhachHangDAO();
            return kq.LayKhachHangByMaKhachHang(MaKhachHang);
        }
        public Boolean ThemKhachHang(KhachHangDTO kh)
        {
            KhachHangDAO kq = new KhachHangDAO();
            return kq.ThemKhachHang(kh);
        }
        public Boolean CapNhatKhachHang(KhachHangDTO kh)
        {
            KhachHangDAO kq = new KhachHangDAO();
            return kq.CapNhatKhachHang(kh);
        }
        public Boolean XoaKhachHangByID(int kH_ID)
        {
            KhachHangDAO kq = new KhachHangDAO();
            return kq.XoaKhachHangByID(kH_ID);
        }
        public Boolean XoaKhachHangByMaKhachHang(string MaKhachHang)
        {
            KhachHangDAO kq = new KhachHangDAO();
            return kq.XoaKhachHangByMaKhachHang(MaKhachHang);
        }
    }
}
